syncSectionTitle looks at device list for the section, to understand if
the section should be visible or not, so obviously it needs to see the
new device.
I wonder when this broke.
https://bugzilla.gnome.org/show_bug.cgi?id=692749
section.addMenuItem(wrapper.statusItem);
section.addMenuItem(wrapper.section);
- this._syncSectionTitle(wrapper.category);
-
let devices = this._devices[wrapper.category].devices;
devices.push(wrapper);
+
+ this._syncSectionTitle(wrapper.category);
},
_deviceRemoved: function(client, device) {